#include "ui_doorcontrolboardeditdlg.h"
#include <QDialog>

#include "CommonType.h"

class CDoorControlBoardEditDlg : public QDialog
{
    Q_OBJECT
public:
    CDoorControlBoardEditDlg(QWidget* parent = Q_NULLPTR);
    ~CDoorControlBoardEditDlg() = default;

    void SetData(const zl::DoorControlBoard& data);
    inline zl::DoorControlBoard GetData() { return data_; }

protected slots:
    void on_btns_confirm_clicked();
    void on_btnd_cancel_clicked();

private:
    Ui::CDoorControlBoardEditDlg ui;
    zl::DoorControlBoard data_;
};
